
import { axios } from '@/utils/request'

const api = {
  productList: '/plugins/product_traceability/product-batch-process/product-list',
  productBatchProcessList:  '/plugins/product_traceability/product-batch-process/product-batch-process-list',
  productBatchProcessEdit: '/plugins/product_traceability/product-batch-process/product-batch-process-edit',
 
  productBatchProcessOperate: '/plugins/product_traceability/product-batch-process/product-batch-process-operate',
  delProductProcessBatch: '/plugins/product_traceability/product-batch-process/product-batch-process-del',
}

export default api

export function getProductList (parameter) {
  return axios({
    url: api.productList,
    method: 'get',
    params: parameter
  })
}
export function getProductBatchProcessList (parameter) {
  return axios({
    url: api.productBatchProcessList,
    method: 'get',
    params: parameter
  })
}
export function productBatchProcessEdit (parameter) {
  return axios({
    url: api.productBatchProcessEdit,
    method: 'post',
    data: parameter
  })
}

export function productBatchProcessOperate(parameter) {
  return axios({
    url: api.productBatchProcessOperate,
    method: 'post',
    data: parameter
  })
}



export function delProductProcessBatch (parameter) {
  return axios({
    url: api.delProductProcessBatch,
    method: 'get',
    params: parameter
  })
}